Skip to content

Lesson07#7

Open
AlexN-github wants to merge 2 commits intomasterfrom
lesson07
Open

Lesson07#7
AlexN-github wants to merge 2 commits intomasterfrom
lesson07

Conversation

@AlexN-github
Copy link
Copy Markdown
Owner

Все сделал

Copy link
Copy Markdown

@Dzhoker1 Dzhoker1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Оставил комментарии по коду



import random
array = [random.randint(-100, 100) for _ in range(10)]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"на промежутке [-100; 100)"
У вас 100 входит.

def sort_(array):
n = 1
while n < len(array):
for i in range(len(array) - n):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

import random


array = [float('%.2f'%(random.uniform(0, 49))) for _ in range(10)]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

random.uniform(0, 50)

for i in range(it1 + it2):
a[left + i] = result[i]

def mergeSort(a):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Забавно, когда студент внезапно забывает Python Style и именно в этой задачи начинает использовать camelCase.
Алгоритм принимается 👍

#array = [6, 0, 3, 9, 4, 4, 4, 4, 5]

for inx_i,i in enumerate(array):
count_l = 0; count_g = 0; count_e = 0;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это что за финт ушами? JS? C++?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants